package com.bidevalution.dao.mapper;

import com.bidevalution.dao.entity.FileCompareResult;
import org.apache.ibatis.annotations.Param;

import java.util.List;
import java.util.Map;

public interface FileCompareResultMapper {
    int deleteByPrimaryKey(String seqId);

    int insert(FileCompareResult record);

    int insertSelective(FileCompareResult record);

    FileCompareResult selectByPrimaryKey(String seqId);

    int updateByPrimaryKeySelective(FileCompareResult record);

    int updateByPrimaryKey(FileCompareResult record);

    List<FileCompareResult> getSimilarEnterprise(@Param("sectionId")String sectionId,@Param("enterpriseId")String enterpriseId, @Param("evalContentType")String evalContentType, @Param("similar")float similar);

    /**
     * 查询需要对比的企业附件
     * @param sectionId
     * @param methodId
     * @return
     */
    List<Map<String, String>> getCompareEnterprise(@Param("sectionId")String sectionId,@Param("methodId")String methodId);

    /**
     * 查询今日需要进行对比的项目
     * @return
     */
    List<Map<String, String>> getCompareSections();

    String getTechnologyPdf(@Param("sectionId")String sectionId,@Param("methodId")String methodId,@Param("enterpriseId")String enterpriseId);

    List<Map<String, String>> getEvalContentList(@Param("sectionId")String sectionId);
}